home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
PET
/
S-Super PET
/
(s)tj.d64
/
RS232.START.ASM
< prev
next >
Wrap
Assembly Source File
|
2009-01-18
|
1KB
|
74 lines
;rs232.start.asm Oct 12, 1983
opt nolist
xdef old_irq
xref screen_setup
xref accept_commands
xref irq_ , new_irq
xref spawn_,suicide_
service_ equ $32
start1 equ * ;from other MLR or cold start
clr service_
ldd #start2
jmp spawn_
start2 equ * ;from moitor
jsr compress_screen
jsr screen_setup
jsr link
jsr accept_commands
jsr unlink
jsr expand_screen
jsr suicide_
register equ $e880
data equ register+1
compact fdb $0428,$0505,$0721,$0907 ,0
expand fdb $0420,$0503,$071d,$0909 ,0
compress_screen equ *
pshs x,d
ldx #compact
store_configuration equ *
loop
ldd ,x++
quif eq
std register
endloop
puls d,x
rts
expand_screen equ *
pshs x,d
ldx #expand
bra store_configuration
link ldd irq_
std old_irq
ldd #new_irq
std irq_
rts
unlink ldd old_irq
std irq_
rts
old_irq fdb $0000
end